package com.lk.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lk.dao.TaskTypeDao;
import com.lk.pojo.TaskType;

@Service
@Transactional
public class TaskTypeService {

	private TaskTypeDao tasktypeDao;

	public void save(TaskType tasktype){
		tasktypeDao.save(tasktype);
	}
	
	public void del(TaskType tasktype){
		tasktypeDao.del(tasktype);
	}
	
	public List<TaskType> findAll(){
		return tasktypeDao.findAll();
	}
	
	//set,get
	public TaskTypeDao getTasktypeDao() {
		return tasktypeDao;
	}
	
	@Autowired
	public void setTasktypeDao(TaskTypeDao tasktypeDao) {
		this.tasktypeDao = tasktypeDao;
	}
	
	
}
